<{include file="db:`$mydirname`_mobile_header.html"}>

<h2><{$smarty.const._MD_MODIFY}></h2>

<form action="<{my_make_uri option=$uri_options mydirname=$mydirname controller=edit method=post}>" method="post" >

  <b><{$smarty.const._MD_SITETITLE}></b><br />
  <input type="text" name="title" size="30" maxlength="255" value="<{$link.title}>" />
  <br />

  <b><{$smarty.const._MD_SITEURL}></b><br />
  <input type="text" name="url" size="30" maxlength="255" value="<{$link.url}>" />
  <br />

  <b><{$smarty.const._MD_MOBILE_SITEURL}></b><br />
  <input type="text" name="murl" size="30" maxlength="255" value="<{$link.murl}>" />
  <br />

  <b><{$smarty.const._MD_CATEGORY}></b><br />
  <{foreach item=selbox from=$category_selbox key=count}>
     <div><{$selbox}></div>
  <{/foreach}>
  <br />

  <b><{$smarty.const._MD_DESCRIPTIONC}></b><br />
  <textarea name="desc" cols="24" rows="3"><{$link.description}></textarea>
  <br />

  <{if $isadmin}>
    <b><{$smarty.const._MD_ADULT}></b><br />
    <input type="radio" name="adult" value="1" <{if $link.adult==1}>CHECKED="CHECKED"<{/if}> /><{$smarty.const._YES}>
    <input type="radio" name="adult" value="0" <{if $link.adult==0}>CHECKED="CHECKED"<{/if}> /><{$smarty.const._NO}>
    <br />
  <{/if}>

  <b><{$smarty.const._MD_SUBMITTER}></b><br />
  <{if $link.guestname}>
    <{if $isadmin}>
      <input type="text" name="guestname" size="30" maxlength="30" value="<{$link.guestname}>" />
    <{else}>
      <{$link.guestname}>
    <{/if}>
  <{else}>
    <{$uname}>
  <{/if}>
  <br />

  <b><{$smarty.const._MD_LASTUPDATEC}></b><br />
  <{$link.date|formatTimestamp:"m"}>
  <br />
  <input type="checkbox" name="age" value="1" checked="checked">
  <{$smarty.const._MD_NEW_DATE}>
  <{if $isadmin}>
    <br />
    <input type="checkbox" name="make_regidate" value="1"><{$smarty.const._MD_MOD_DATE}><br />
    <{$date_selector}>
  <{/if}>
  <br />

  <{if $isadmin}>
    <b><{$smarty.const._MD_NO_CHECK_URI}></b><br />
    <input type="checkbox" name="no_check_uri" value="1"></input>
    <br />
  <{/if}>

  <input type="submit" name="modify" value="<{$smarty.const._SUBMIT}>" />

  <input type="hidden" name="lid" value="<{$link.lid}>" />
  <{$gticket}>
</form>

<{if $del_perm}>
  <hr />
  <form action="<{my_make_uri option=$uri_options mydirname=$mydirname controller=edit method=delete_confirm}>" method="post">
    <input type="submit" value="<{$smarty.const._MD_DELETE_CONFIRM}>" />
    <input type="hidden" name="lid" value="<{$link.lid}>" />
    <{$gticket_del}>
  </form>
  <hr />
<{/if}>


<div style="margin:16px 0;">
  <img src="<{$myurl}>/images/<{if $post_perm}>yes<{else}>no<{/if}>.png" />
  <{$smarty.const._MD_A_LINKS_GP_PERM_TO_POST}>
  <br />
  <img src="<{$myurl}>/images/<{if $post_approval}>yes<{else}>no<{/if}>.png" />
  <{$smarty.const._MD_A_LINKS_GP_PERM_TO_P_APPROVE}>
  <br />
  <img src="<{$myurl}>/images/<{if $edit_perm}>yes<{else}>no<{/if}>.png" />
  <{$smarty.const._MD_A_LINKS_GP_PERM_TO_EDIT}>
  <br />
  <img src="<{$myurl}>/images/<{if $edit_approval}>yes<{else}>no<{/if}>.png" />
  <{$smarty.const._MD_A_LINKS_GP_PERM_TO_E_APPROVE}>
  <br />
  <img src="<{$myurl}>/images/<{if $del_perm}>yes<{else}>no<{/if}>.png" />
  <{$smarty.const._MD_A_LINKS_GP_PERM_TO_DELETE}>
  <br />
  <img src="<{$myurl}>/images/<{if $del_approval}>yes<{else}>no<{/if}>.png" />
  <{$smarty.const._MD_A_LINKS_GP_PERM_TO_D_APPROVE}>
</div>


<{include file="db:`$mydirname`_mobile_footer.html"}>
